package com.king.designpatterns.hybriddesignpattern.hybriddesignpattern.chainofcommandandresponsibility;

/**
 * LS类用于处理不带任何参数的ls命令
 *
 * @author king
 * @date 2021-06-11 14:52
 */
public class LS extends AbstractLS{
    /**
     * 最简单的ls命令
     */
    @Override
    protected String echo(CommandVO vo){
        return FileManager.ls(vo.getCommandName());
    }

    /**
     * 参数为空
     */
    @Override
    protected String getOperateParam() {
        return DEFAULT_PARAM;
    }
}
